<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<script>
			//登录表单简单校验
			function checkLoginForm(){
				/*校验密码*/
				var pValue = document.getElementById("password").value;
				if(pValue==""){
					alert("密码不能为空!");
					return false;
				}
				/**校验确认密码*/
				var rpValue = document.getElementById("repassword").value;
				if(rpValue!=pValue){
					alert("两次密码输入不一致!");
					return false;
				}
			}
		</script>
	</head>	
	<!--修改密码页面  -->
	<body >
		<%
			String sid = (String) request.getSession().getAttribute("sid");
		%>
		<div align="center" style="margin:50px;">
			<form action="/classStudentMS/passwordServlet" method="post" name="loginForm" onsubmit="return checkLoginForm()">
				<span style="color: #2a8dc8; font-family: cursive; font-size: 23px; font-weight: bolder;">用户密码修改 </span><br/><br/>
				用户名：&nbsp;&nbsp;&nbsp;
				<input type="text" name="sid" value="<%=sid%>" readonly="readonly"><br/><br/>
				新密码： &nbsp;&nbsp;&nbsp;
				<input  type="password" name="password" id="password"><br/><br/>
				确认密码：&nbsp;&nbsp;
				<input  type="password" name="repassword" id="repassword"><br/><br/>
				<input type="submit" class="button"  style="margin-right:3px;" value="修改">
			</form>
		</div>
	</body>
</html>